#if TOOLS
using Godot;
using System.Collections.Generic;

namespace Janphe.addons.Avatar
{
    [Tool]
    public class Main : EditorPlugin
    {
        private PluginControl dock;

        public override void _EnterTree()
        {
            dock = (PluginControl)GD.Load<PackedScene>("addons/Avatar/plugin.tscn").Instance();
            dock.main = this;
            dock.Start();
            AddControlToDock(DockSlot.RightUr, dock);
        }

        public override void _ExitTree()
        {
            RemoveControlFromDocks(dock);
            dock.Free();
        }
    }
}
#endif
